//
// Created by 86176 on 2021/11/5.
//

#ifndef CHENYUENEW_IOHANDLER_H
#define CHENYUENEW_IOHANDLER_H


#include "Session.h"
#include "MsgObject.h"
#include "Message.h"

class IoHandler {

public:
    virtual void sessionCreated(Session *session) = 0;

//    virtual void sessionOpened(Session *session) = 0;

    virtual void sessionClosed(Session *session) = 0;

    virtual void sessionIdle(Session var1, IdleStatus var2) = 0;

//    void exceptionCaught(Session var1, Throwable var2) ;

    virtual void messageSent(Session *session, Message *message) = 0;

//    virtual void inputClosed(Session var1) = 0;

    virtual void messageReceived(Session *session, Message *message) = 0;
};


#endif //CHENYUENEW_IOHANDLER_H
